package a.f;

import a.c.ab;
import a.c.*;
import a.c.v;
import a.c.z;
import a.d.s;
import a.d.t;
import a.d.x;

import java.awt.*;
import java.util.ArrayList;

public abstract class o
  extends q
  implements dc
{
  public static int dg;
  public static boolean eg;
  
  public o() {}
  
  public o(o paramo)
  {
    this(paramo, paramo.v());
  }
  
  public o(o paramo, a.c.y paramy)
  {
    super(paramo, paramy);
  }
  
  protected abstract x.a_ f();
  
  public abstract zc k(e parame);
  
  public abstract zb b(d paramd);
  
  public abstract xc[] l(e parame);
  
  public abstract wb[] k(d paramd);
  
  public abstract e a(xc paramxc);
  
  public abstract d a(wb paramwb);
  
  public zc d(Object paramObject)
  {
    return k((e)paramObject);
  }
  
  public zb e(Object paramObject)
  {
    return b((d)paramObject);
  }
  
  public xc[] f(Object paramObject)
  {
    return l((e)paramObject);
  }
  
  public wb[] g(Object paramObject)
  {
    return k((d)paramObject);
  }
  
  public double m(e parame)
  {
    zc localzc = k(parame);
    return localzc.a() + localzc.c() / 2.0D;
  }
  
  public double n(e parame)
  {
    zc localzc = k(parame);
    return localzc.b() + localzc.d() / 2.0D;
  }
  
  public a.d.w o(e parame)
  {
    return new a.d.w(m(parame), n(parame));
  }
  
  public double p(e parame)
  {
    return k(parame).a();
  }
  
  public double q(e parame)
  {
    return k(parame).b();
  }
  
  public a.d.w r(e parame)
  {
    zc localzc = k(parame);
    return new a.d.w(localzc.a(), localzc.b());
  }
  
  public double s(e parame)
  {
    return k(parame).c();
  }
  
  public double t(e parame)
  {
    return k(parame).d();
  }
  
  public s u(e parame)
  {
    return new s(s(parame), t(parame));
  }
  
  public t v(e parame)
  {
    return new t(r(parame), u(parame));
  }
  
  public void a(e parame, a.d.w paramw)
  {
    a(parame, paramw.a(), paramw.b());
  }
  
  public void a(e parame, double paramDouble1, double paramDouble2)
  {
    zc localzc = k(parame);
    localzc.a(paramDouble1 - localzc.c() / 2.0D, paramDouble2 - localzc.d() / 2.0D);
  }
  
  public void b(e parame, double paramDouble1, double paramDouble2)
  {
    k(parame).b(paramDouble1, paramDouble2);
  }
  
  public void a(e parame, s params)
  {
    b(parame, params.b(), params.c());
  }
  
  public void c(e parame, double paramDouble1, double paramDouble2)
  {
    k(parame).a(paramDouble1, paramDouble2);
  }
  
  public void b(e parame, a.d.w paramw)
  {
    c(parame, paramw.a(), paramw.b());
  }
  
  public void d(e parame, double paramDouble1, double paramDouble2)
  {
    zc localzc = k(parame);
    localzc.a(localzc.a() + paramDouble1, localzc.b() + paramDouble2);
  }
  
  public a.d.y l(d paramd)
  {
    boolean bool = eg;
    int j = dg;
    zb localzb = b(paramd);
    ArrayList localArrayList = new ArrayList(localzb.a());
    int i = 0;
    do
    {
      while (j == 0)
      {
        if (i >= localzb.a()) {
          break;
        }
        localArrayList.add(localzb.a(i));
        i++;
      }
    } while (bool);
    return new a.d.y(localArrayList);
  }
  
  public z m(d paramd)
  {
    boolean bool = eg;
    int j = dg;
    zb localzb = b(paramd);
    z localz = new z();
    int i = 0;
    do
    {
      while (j == 0)
      {
        if (i >= localzb.a()) {
          break;
        }
        if (j != 0) {
          break label70;
        }
        localz.add(localzb.a(i));
        i++;
      }
    } while (bool);
    label70:
    return localz;
  }
  
  public a.d.y n(d paramd)
  {
    boolean bool = eg;
    int i = dg;
    ArrayList localArrayList = new ArrayList();
    localArrayList.add(r(paramd));
    x localx = l(paramd).b();
    do
    {
      do
      {
        if (!localx.e()) {
          break;
        }
        localArrayList.add(localx.j());
        localx.f();
        if ((!bool) && (i != 0)) {
          break label93;
        }
      } while (i == 0);
    } while (bool);
    localArrayList.add(s(paramd));
    label93:
    return new a.d.y(localArrayList);
  }
  
  public z o(d paramd)
  {
    boolean bool = eg;
    int i = dg;
    z localz = new z();
    localz.add(r(paramd));
    x localx = l(paramd).b();
    do
    {
      do
      {
        if (!localx.e()) {
          break;
        }
        if (bool) {
          break label94;
        }
        localz.add(localx.j());
        localx.f();
        if (i != 0) {
          return localz;
        }
      } while (i == 0);
    } while (bool);
    localz.add(s(paramd));
    label94:
    return localz;
  }
  
  public void a(d paramd, a.d.y paramy)
  {
    boolean bool = eg;
    int i = dg;
    zb localzb = b(paramd);
    localzb.b();
    x localx = paramy.b();
    a.d.w localw1 = localx.a();
    c(paramd, localw1);
    a.d.w localw2 = paramy.e();
    localx.f();
    do
    {
      do
      {
        if (localx.j() == localw2) {
          break;
        }
        localw1 = localx.a();
        localzb.a(localw1.a(), localw1.b());
        localx.f();
        if ((!bool) && (i != 0)) {
          return;
        }
      } while (i == 0);
    } while (bool);
    d(paramd, localw2);
  }
  
  public void a(d paramd, z paramz)
  {
    boolean bool = eg;
    int i = dg;
    zb localzb = b(paramd);
    localzb.b();
    a.c.y localy = paramz.h();
    a.d.w localw1 = (a.d.w)localy.j();
    c(paramd, localw1);
    a.d.w localw2 = (a.d.w)paramz.d();
    localy.f();
    do
    {
      do
      {
        if (localy.j() == localw2) {
          break;
        }
        localw1 = (a.d.w)localy.j();
        localzb.a(localw1.a(), localw1.b());
        localy.f();
        if ((!bool) && (i != 0)) {
          return;
        }
      } while (i == 0);
    } while (bool);
    d(paramd, localw2);
  }
  
  public void b(d paramd, a.d.y paramy)
  {
    int i = dg;
    zb localzb = b(paramd);
    localzb.b();
    x localx = paramy.b();
    do
    {
      if (!localx.e()) {
        break;
      }
      a.d.w localw = localx.a();
      localzb.a(localw.a(), localw.b());
      localx.f();
    } while (i == 0);
  }
  
  public void b(d paramd, z paramz)
  {
    int i = dg;
    zb localzb = b(paramd);
    localzb.b();
    v localv = paramz.f();
    do
    {
      if (localv == null) {
        break;
      }
      a.d.w localw = (a.d.w)localv.c();
      localzb.a(localw.a(), localw.b());
      localv = localv.a();
    } while (i == 0);
  }
  
  public void a(d paramd, a.d.w paramw1, a.d.w paramw2)
  {
    c(paramd, paramw1);
    d(paramd, paramw2);
  }
  
  public a.d.w p(d paramd)
  {
    return b(paramd).c();
  }
  
  public a.d.w q(d paramd)
  {
    return b(paramd).d();
  }
  
  public void a(d paramd, a.d.w paramw)
  {
    b(paramd).a(paramw);
  }
  
  public void b(d paramd, a.d.w paramw)
  {
    b(paramd).b(paramw);
  }
  
  public a.d.w r(d paramd)
  {
    a.d.w localw1 = b(paramd).c();
    if (!eg) {
      if (localw1 == null) {
        return o(paramd.e());
      }
    }
    a.d.w localw2 = new a.d.w(m(paramd.e()) + localw1.a(), n(paramd.e()) + localw1.b());
    return localw2;
  }
  
  public a.d.w s(d paramd)
  {
    a.d.w localw1 = b(paramd).d();
    if (!eg) {
      if (localw1 == null) {
        return o(paramd.f());
      }
    }
    a.d.w localw2 = new a.d.w(m(paramd.f()) + localw1.a(), n(paramd.f()) + localw1.b());
    return localw2;
  }
  
  public void c(d paramd, a.d.w paramw)
  {
    a.d.w localw = new a.d.w(paramw.a() - m(paramd.e()), paramw.b() - n(paramd.e()));
    b(paramd).a(localw);
  }
  
  public void d(d paramd, a.d.w paramw)
  {
    a.d.w localw = new a.d.w(paramw.a() - m(paramd.f()), paramw.b() - n(paramd.f()));
    b(paramd).b(localw);
  }
  
  public ab J()
  {
    return new ab(w());
  }
  
  public Rectangle d()
  {
    boolean bool = eg;
    int i = dg;
    double d1 = d2 = 1.7976931348623157E+308D;
    double d3 = d4 = -1.797693134862316E+308D;
    Object localObject1 = v();
    Object localObject2;
    Object localObject3;
    do
    {
      if (!((a.c.w)localObject1).e()) {
        break;
      }
      localObject2 = r(((a.c.w)localObject1).d());
      if (i != 0) {
        break label140;
      }
      localObject3 = u(((a.c.w)localObject1).d());
      d1 = Math.min(((a.d.w)localObject2).a(), d1);
      d2 = Math.min(((a.d.w)localObject2).b(), d2);
      d3 = Math.max(((a.d.w)localObject2).a() + ((s)localObject3).b(), d3);
      d4 = Math.max(((a.d.w)localObject2).b() + ((s)localObject3).c(), d4);
      ((a.c.w)localObject1).f();
    } while (i == 0);
    label140:
    localObject1 = w();
    label271:
    label273:
    do
    {
      do
      {
        if (!((m)localObject1).e()) {
          break;
        }
        localObject2 = l(((m)localObject1).a()).a();
        do
        {
          do
          {
            if (!((a.c.y)localObject2).e()) {
              break;
            }
            localObject3 = (a.d.w)((a.c.y)localObject2).j();
            d1 = Math.min(((a.d.w)localObject3).a(), d1);
            d2 = Math.min(((a.d.w)localObject3).b(), d2);
            d3 = Math.max(((a.d.w)localObject3).a(), d3);
            d4 = Math.max(((a.d.w)localObject3).b(), d4);
            ((a.c.y)localObject2).f();
            if (bool) {
              break label273;
            }
            if (i != 0) {
              break label271;
            }
          } while (i == 0);
        } while (bool);
        ((m)localObject1).f();
      } while (i == 0);
      if (bool) {
        break;
      }
    } while (bool);
    if (d1 == 1.7976931348623157E+308D)
    {
      if (bool) {
        break label341;
      }
      if (d2 == 1.7976931348623157E+308D) {
        return new Rectangle(0, 0, -1, -1);
      }
    }
    d1 = Math.floor(d1);
    double d2 = Math.floor(d2);
    d3 = Math.ceil(d3);
    label341:
    double d4 = Math.ceil(d4);
    return new Rectangle((int)d1, (int)d2, (int)(d3 - d1), (int)(d4 - d2));
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.o

 * JD-Core Version:    0.7.0.1

 */